import java.util.Scanner;

public class Test2_6 {
    public static void main(String[] args) {
        System.out.println((int)Math.pow(2,31) - 1);
        Scanner input = new Scanner(System.in);
        // 提示用户输入
        System.out.println("Enter a number between 0 and 1000:");
        int number = input.nextInt();
        if (number > 1000 || number < 0) {
            System.out.println("The number exceeds the limit");
            System.exit(0);
        }
        int sum = 0;
        for(;number > 0; number /= 10) {
            sum += number % 10;
        }
        System.out.println("The sum of the digits is " + sum);
    }
}

